package com.xx.xunyou.dao.item.youlezaixiangcun;

import com.xx.xunyou.entity.item.chizhuzaixiang.vo.ChizhuzaixiangVo;
import com.xx.xunyou.entity.item.youlezaixiangcun.Youlezaixiangcun;
import com.xx.xunyou.entity.item.youlezaixiangcun.vo.YoulezaixiangcunVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

@Mapper
public interface YoulezaixiangcunDAO {
    int deleteByPrimaryKey(Integer youlezaixiangcunId);

    int insert(Youlezaixiangcun record);

    int insertSelective(Youlezaixiangcun record);

    Youlezaixiangcun selectByPrimaryKey(Integer youlezaixiangcunId);

    int updateByPrimaryKeySelective(Youlezaixiangcun record);

    int updateByPrimaryKey(Youlezaixiangcun record);

    /**
     * 查询数据条数
     * @param map
     * @return
     */
    Integer queryListCountToManager(Map<String,Object> map);

    /**
     * 查询数据
     * @param map
     * @return
     */
    List<Map> queryListToManager(Map<String,Object> map);

    /**
     * 添加主键返回
     * @param youlezaixiangcun
     */
    void insertBackId(Youlezaixiangcun youlezaixiangcun);

    /**
     * 推荐
     * @param youlezaixiangcunId
     * @param date
     */
    void recommend(@Param("youlezaixiangcunId") Integer youlezaixiangcunId,@Param("date") Date date);

    /**
     * 取消推荐
     * @param youlezaixiangcunId
     */
    void notRecommend(@Param("youlezaixiangcunId")Integer youlezaixiangcunId);

    /**
     * 查询数据给app
     * @param map
     * @return
     */
    List<YoulezaixiangcunVo> queryListToAPPIndex(Map<String,Object> map);


}